<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

   <title>DREAM Toolbox - calcobjscore</title>

   <meta name="keywords" content="calcobjscore">

   <meta name="description" content="calcobjscore">

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  
   <meta name="robots" content="index, follow">

   <meta author="Jurriaan H. Spaaks">

   <link type="text/css" rel="stylesheet" href="styles/dream_styles.css">
 
</head>



<body>
<a name="_top"></a>

<div class="linkheader">
<a href="matlab:edit(fullfile(dreamroot,'calcobjscore'))">View source code of the function <span style="font-family:monospace">calcobjscore()</span> in the MATLAB editor</a><br><br>
<a href="matlab:web(fullfile(dreamroot,'html','contents.html'),'-helpbrowser')">Toolbox contents</a>
</div>

<div class="spacer">
</div>


<div class="h1">
calcobjscore
</div>


<div class="h2">
Syntax
</div>

<div class="txt">
<pre>[evalResults,nModelEvals] = calcobjscore(dreamPar,evalResults,nModelEvals)</pre>
</div>

<div class="h2">
Description
</div>

<div class="txt">
Function <span style="font-family:monospace">calcobjscore</span> iterates over the parameter sets in variable <span style="font-family:monospace">evalResults</span>; if a row <span style="font-family:monospace">k</span> in <span style="font-family:monospace">evalResults</span> has not yet been evaluated (<span style="font-family:monospace">evalResults(k,dreamPar.evalCol)==false</span>), function <span style="font-family:monospace">calcobjscore</span> first calls the model using the model call string specified by <span style="font-family:monospace">dreamPar.modelCallStr</span>. The model result is directed towards an objective function as specified by <span style="font-family:monospace">dreamPar.objCallStr</span>. Both the model function itself and the objective function are called using an <a href="matlab:doc matlab/eval"><span style="font-family:monospace">eval</span></a> statement. The objective function should be constructed in such a way that it yields a 1x1 array objective score.
</div>


<div class="footer">
</div>



<div class="spacer">
</div>


<a name="_bottom"></a>


</body>

</html>